﻿<?php

    //编辑单条删除功能

    $id = $_GET['id'];//获取地址栏中的参数名是Id的值
    $rows=db_delete($GLOBALS['c'],$id);
    if ($rows>0) {
      echo '<script>alert("删除成功");location.href="index.php?c=news&a=list&admin=1"</script>';die;
    }else{
      echo '<script>alert("删除失败");history.go(-1);</script>';die;
     }



?>


